package com.xiaomo.gitee.datamanager.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @TableName permission
 */
@TableName(value = "permission")
@Data
@Schema(description = "权限信息对象", name = "权限信息模型",title = "权限信息模型")
public class Permission implements Serializable {

    @TableId("id")
    @Schema(
            title = "id",
            format = "number",
            name = "权限ID",
            example = "权限ID",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private Long id;

    @TableField("name")
    @Schema(
            title = "name",
            name = "权限名称",
            example = "权限名称",
            format = "string",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String name;

    @TableField("description")
    @Schema(
            title = "description",
            name = "权限描述",
            format = "string",
            requiredMode = Schema.RequiredMode.AUTO
    )
    private String description;

    @Serial
    @Hidden
    private static final long serialVersionUID = 1L;
}